package com.fengwk.resource.face.entity;

import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;

/**
 * 文件表
 * 
 * @author fengwk
 *
 */
public class ResFile implements Serializable {
	
	private static final long serialVersionUID = -9217529399150809862L;
	
	@ApiModelProperty("文件id")
    protected Long fileId;
	
	@ApiModelProperty("文件名称")
    protected String name;
	
	@ApiModelProperty("文件类型")
    protected String type;
	
	@ApiModelProperty("文件大小: 例如图片文件的100*100")
    protected String size;
	
	@ApiModelProperty("文件长度")
    protected Long length;
	
	@ApiModelProperty("相对路径")
    protected String relativePath;
	
	@ApiModelProperty("绝对路径")
    protected String absolutePath;
	
	@ApiModelProperty("创建时间")
    protected Long createTime;
	
	@ApiModelProperty("用户id")
    protected Long userId;
	
	@ApiModelProperty("文件md5码")
	protected String md5;
	
	@ApiModelProperty("资源服务器id")
	protected Long serverId;
	
	@ApiModelProperty("链接地址,文件由外部服务提供")
	protected String linkUrl;
    
    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public Long getLength() {
		return length;
	}

	public void setLength(Long length) {
		this.length = length;
	}

	public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath == null ? null : relativePath.trim();
    }

    public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public Long getServerId() {
		return serverId;
	}

	public void setServerId(Long serverId) {
		this.serverId = serverId;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}
    
}